version: "2"
services:
  portainer:
    image: portainer/portainer-ce:latest
    restart: always
    ports:
      - '8000:8000'
      - '9443:9443'
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - 'portainer_data:/data'
    networks:
      - portainer

volumes:
  portainer_data:
    driver: local

networks:
  portainer:
    driver: bridge